const path = require('path');

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  resolve: {
    alias: {
      '@': resolve('src'),
      'components': resolve('src/components'),
      'assets': resolve('src/assets'),
      'common': resolve('src/common'),
      'views': resolve('src/views'),
      'utils': resolve('src/utils'),
      'mock-data': resolve('src/mock-data')
    }
  }
}